python program to copy contents